Mass convert NULL -> null. Left strings and comments alone, obviously.
[lhc/web/wiklou.git] / includes / api / ApiProtect.php
index 221dc02..bfc35d6 100644 (file)
@@ -40,7 +40,7 @@ class ApiProtect extends ApiBase {
                global $wgUser, $wgRestrictionTypes, $wgRestrictionLevels;
                $params = $this->extractRequestParams();
 
-               $titleObj = NULL;
+               $titleObj = null;
                if(!isset($params['title']))
                        $this->dieUsageMsg(array('missingparam', 'title'));
                if(!isset($params['token']))
@@ -81,7 +81,7 @@ class ApiProtect extends ApiBase {
                        if($titleObj->exists() && $p[0] == 'create')
                                $this->dieUsageMsg(array('create-titleexists'));
                        if(!$titleObj->exists() && $p[0] != 'create')
-                               $this->dieUsageMsg(array('missingtitles-createonly'));
+                               $this->dieUsageMsg(array('missingtitle-createonly'));
                        if(!in_array($p[0], $restrictionTypes) && $p[0] != 'create')
                                $this->dieUsageMsg(array('protect-invalidaction', $p[0]));
                        if(!in_array($p[1], $wgRestrictionLevels) && $p[1] != 'all')